import request from '@/utils/request'

// 查询信用生活服务列表
export function getServiceList() {
  return request({
    url: '/credit/lifeService/list',
    method: 'get'
  })
}

// 获取服务详情
export function getServiceDetail(serviceCode) {
  return request({
    url: '/credit/lifeService/' + serviceCode,
    method: 'get'
  })
}

// 申请服务
export function applyService(serviceCode) {
  return request({
    url: '/credit/lifeService/apply/' + serviceCode,
    method: 'post'
  })
}

// 获取我的服务申请记录
export function getMyApplications() {
  return request({
    url: '/credit/lifeService/myApplications',
    method: 'get'
  })
} 